﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XEvents.Library
{
    public class EventSessionTargetCollection : List<EventSessionTarget>
    {
        public EventSessionTargetCollection(IEnumerable<EventSessionTarget> est)
            : base(est)
        { }

        public EventSessionTargetCollection()
        { }

        public EventSessionTarget this[string name]
        {
            get { return this.ToDictionary(n => n.Name, n => n)[name]; }
        }

    }
}
